package com.freshmarket.freshmarket.dao;

import com.freshmarket.freshmarket.controller.form.OrdersPageForm;
import com.freshmarket.freshmarket.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freshmarket.freshmarket.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    //查询总条数
    public int selectCountPage(@Param("userName")String userName, @Param("userPhone") String userPhone,@Param("ordersStatus") String ordersStatus) throws Exception;
    //分页查询所有信息
    List<OrdersPageForm> selectNowPageAll(@Param("pageStart") int pageStart, @Param("pageSize") int pageSize, @Param("userName") String userName, @Param("userPhone") String userPhone,@Param("ordersStatus") String ordersStatus)throws Exception;
}
